<?php
include_once 'include.php';
$ImageObj = new Image();

$caption = $_POST['caption'];
$id = $_POST['id'];
$sql = "UPDATE `".$ImageObj->get_table_name()."` SET `caption` = '$caption' WHERE `id` = '$id'";
if(mysql_query($sql)){
	echo $confirmed;
}
else echo "error";
?>